import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import routes from './router'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {createPinia} from 'pinia'
import 'element-plus/dist/index.css'
import './mock/index.ts'
import './router/guard.ts'
import permission from './directives/permission.ts'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.directive('permission',permission)
const pinia = createPinia()
app.use(ElementPlus)
app.use(pinia)
app.use(routes)
app.mount('#app')
